$this->performRequest();
// GUI-ify and stash the page output in MediaWiki::doPreOutputCommit() while
- // ChronologyProtector synchronizes DB positions or slaves accross all datacenters.
+ // ChronologyProtector synchronizes DB positions or replicas accross all datacenters.
$buffer = null;
$outputWork = function () use ( $output, &$buffer ) {
if ( $buffer === null ) {
// Wait before lock to try to reduce time waiting in the lock.
if ( !$loadBalancer->safeWaitForMasterPos( $dbr ) ) {
- $this->setLastError( 'Timed out while waiting for slave to catch up before lock' );
+ $this->setLastError( 'Timed out waiting for replica to catch up before lock' );
return false;
}
}
if ( !$loadBalancer->safeWaitForMasterPos( $dbr ) ) {
- $this->setLastError( 'Timed out while waiting for slave to catch up within lock' );
+ $this->setLastError( 'Timed out waiting for replica to catch up within lock' );
return false;
}
}
// Update process cache to ensure skin doesn't claim that the current
// page is unwatched in the response of action=watch itself (T28292).
- // This would otherwise be re-queried from a slave by isWatched().
+ // This would otherwise be re-queried from a replica by isWatched().
foreach ( $items as $item ) {
$this->cache( $item );
}
}
$this->output( "... $last\n" );
- // $this->commitTransaction() already waited for slaves, no need to re-wait here.
+ // $this->commitTransaction() already waited for replication; no need to re-wait here
}
$this->output( "Completed ar_text migration, $count rows updated, $errors missing data.\n" );
}
// We list user by user_id from one of the replica DBs
- // We list user by user_id from one of the slave database
$dbr = $this->getDB( DB_REPLICA );
$where = [];